//自适应屏幕宽高
var conheight = document.documentElement.clientHeight;
var conwidth = document.documentElement.clientWidth;
document.getElementsByClassName("contain")[0].style.height = conheight+"px";
document.getElementsByClassName("contain")[0].style.width = conwidth+"px";
console.log(conheight);
console.log(conwidth);